package org.linlinjava.litemall.wx.vo.category;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.linlinjava.litemall.db.domain.LitemallTax;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class CategoryListVO implements Serializable {

    @ApiModelProperty("类目名称")
    private String categoryName;

    @ApiModelProperty("类目商品列表")
    private List<CategoryObjListVO> categoryObjs;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CategoryObjListVO{

        @ApiModelProperty("id")
        private Integer id;

        @ApiModelProperty("类目名称")
        private String name;

        @ApiModelProperty("图")
        private String picture;

        @ApiModelProperty("商品｜套餐")
        private Boolean isPackage;

        private BigDecimal retailPrice;
        private String brief;
        private Boolean isNew;
        private Boolean isHot;
    }

}